package com.sihan.framework.etm.entity.business;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.framework.model.BaseModel;
import com.framework.mybatis.annotation.AutoGenerator;
import com.framework.mybatis.enums.IdType;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "jdx_etm_user_borrow_detail")
public class ToolBorrowDetail extends BaseModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	@AutoGenerator(idType = IdType.UUID32)
	private String id;
	// 主表id
	private String masterId;
	// 工器具id
	private String toolId;
	// 智能柜id
	private String deviceId;
	// 检验过期时间
	private Date expiredTime;
	// 是否已归还
	private Integer hasReturn;
	// 归还时间
	private Date returnTime;
	// 归还柜子
	private String returnDeviceId;
	// 归还人
	private String returnUserId;
	private String useState; // DEFAULT NULL COMMENT '领用检查',
	private String returnUserName; // DEFAULT NULL COMMENT '归还人姓名',
	private String returnState; // DEFAULT NULL COMMENT '归还检查',
	private String useReturnState; // DEFAULT NULL COMMENT '领用归还状态',
}
